// 关于部门相关的接口
import request from '@/utils/request'
// 获取所有部门列表
export const reqGetDepartments = () => request({ method: 'get', url: '/company/department' })
// 删除部门 id是删除部门的id
export const reqDelDept = id => request({ method: 'delete', url: `/company/department/${id}` })
// 新增部门 post发送请求携带请求体参数
export const reqAddDept = data => request({ method: 'post', url: '/company/department', data })
// export const reqAddDept = data => request.post('/company/department', data)
// 根据id查询部门详情
export const reqGetDeptInfoById = id => request({ method: 'get', url: `/company/department/${id}` })
// 更新部门详情
export const reqUpdateDeptInfo = data => request({ method: 'put', url: `/company/department/${data.id}`, data })
